package com.sky.service;

import com.sky.entity.AddressBook;

import java.util.List;

/**
 * @program: sky-take-out
 * @description:
 * @author: fmp
 * @create: 2023-04-09 15:10
 * @Version 1.0
 **/
public interface AddressBookService {
    //查询当前用户下的全部地址
    List<AddressBook> selectAllAddressBookByUserId();
    //新增地址
    void insertAddressBook(AddressBook addressBook);
    //根据id查询
    AddressBook selectById(Long id);
    //根据id修改地址
    void updateAddressBook(AddressBook addressBook);
    //很根据id删除
    void DeleteAddressBookById(Long id);
    //设置默认地址
    void SetDefaultAddressBook(AddressBook addressBook);
}
